package com.ruizhong.centercontroll.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_command")
public class TCommand {
    private String mainType;

    private Integer mainId;

    private String commandEvent;

    private String instructionData;

    private Integer commandIndex;

    private String ipAddress;

    private String port;

    private Integer eventType;

    private Integer sonEventType;

    private String returnFormat;

    private String returnValueArrData;

    private String inputValueArrData;

    private Integer getReturnData;

    private String nextCommandId;

    private String commandId;

    private String trueNextId;

    private String falseNextId;

    private String firstCommandId;

//    case ComponentStyleComponent
    private String componentType;

    private Integer componentId;

    private Double y;

    private Double x;

    private Double w;

    private Double h;

    private Double z;

    private String fontColor;

    private String textChinese;

    private String textTraditional;

    private String textEnglish;

    private String backgroundColor;

    private String background;

    private Integer fontSize;

    private Integer borderCorner;

    private String inputOutputArrData;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(exist = false)
    private List<Map<String, String>> returnValueArr;

    @TableField(exist = false)
    private List<Map<String, String>> inputValueArr;

    @TableField(exist = false)
    private Boolean getReturn;



    private String beChangedVariableName;

    private String beChangedVariableValue;

    private String requestPath;

    private String triggerGroup;

    private Integer serialNumber;

    private Integer hexadecimalData;

    @TableField(exist = false)
    private Boolean hexadecimal;

    private Integer delay;

    private Integer bufferTime;

    private Double initialValue;

    private Double targetValue;

    private String audioFilePath;

    private Integer baudRate;

    private Integer dataBits;

    private Integer stopBits;

    private Integer parityBits;

    private String videoFilePath;

    private String infoText;

    private String imageFilePath;

    private String variableList;
}
//